package com.jboost.modules.app.dto;

import lombok.Data;

import java.util.List;
@Data
public class JdyReq {
    /**
     * app_id : 59264073a2a60c0c08e20bfb
     * entry_id : 59264073a2a60c0c08e20bfd
     * data_id : 59e9a2fe283ffa7c11b1ddbf
     * limit : 100
     * fields : ["_widget_1508400000001","_widget_1508400000002","_widget_1508400000003"]
     * filter : {"rel":"and","cond":[{"field":"_widget_1508400000001","type":"text","method":"empty"},{"field":"_widget_1508400000002","type":"number","method":"not_empty"},{"field":"flowState","type":"flowstate","method":"eq","value":[0]},{"field":"createTime","method":"range","value":["2022-01-01",null]}]}
     */

    private String app_id;
    private String entry_id;
    private String data_id;
    private int limit;
    private FilterBean filter;
    private List<String> fields;
  @Data
    public static class FilterBean {
        /**
         * rel : and
         * cond : [{"field":"_widget_1508400000001","type":"text","method":"empty"},{"field":"_widget_1508400000002","type":"number","method":"not_empty"},{"field":"flowState","type":"flowstate","method":"eq","value":[0]},{"field":"createTime","method":"range","value":["2022-01-01",null]}]
         */

        private String rel;
        private List<CondBean> cond;
       @Data
        public static class CondBean {
            /**
             * field : _widget_1508400000001
             * type : text
             * method : empty
             * value : [0]
             */

            private String field;
            private String type;
            private String method;
            private List<String> value;

        }
    }
}
